home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shore_siege.swf / scripts / DefineSprite_456 / frame_1 / PlaceObject2_451_340 / CLIPACTIONRECORD onClipEvent(mouseUp).as < prev   
Text File  |  2011-08-19  |  498b  |  18 lines

  1. onClipEvent(mouseUp){
  2.    if(active == true)
  3.    {
  4.       if(_parent.pythag(_X,_Y,_parent.pirateMan3._x,_parent.pirateMan3._y) < 85)
  5.       {
  6.          _root.money -= 600;
  7.          _X = xPos;
  8.          _Y = yPos;
  9.          play();
  10.          _parent.pirateMan1.health = _root.pirateAmmo;
  11.          _parent.pirateMan2.health = _root.pirateAmmo;
  12.          _parent.pirateMan3.health = _root.pirateAmmo;
  13.          _parent.pirateMan4.health = _root.pirateAmmo;
  14.       }
  15.       active = false;
  16.    }
  17. }
  18.